<!--
 * @Author: whq
 * @Date: 2024-03-13 09:07:45
 * @LastEditTime: 2024-06-13 17:33:25
 * @LastEditors: whq
 * @Description: 
 * @FilePath: \vue3Vant4Temp\src\view\HomePage\index.vue
-->
<template>
  <div class="homecss">首页</div>
  <div>
    {{ globals().info }}
    <div class="homecss"></div>
    <div class="homecss"></div>
    <div class="homecss"></div>
  </div>
  <van-notice-bar
    scrollable
    :text="'本月有' + blessnum + '个客户要过生日,快去祝福她吧'"
  ></van-notice-bar>
  <van-button type="primary">主要按钮</van-button>
  <van-radio-group v-model="checked">
    <van-radio name="1">单选框 1</van-radio>
    <van-radio name="2">单选框 2</van-radio>
  </van-radio-group>
  <!-- <ClassIfication @on-click-item="onClickItem"></ClassIfication> -->
</template>
<script setup>
import { onMounted, ref } from "vue";
import globals from "@/store/globals";
import { publicApi } from "@apis/index";


// import ClassIfication from "..//ClassIfication/index.vue";

const checked = ref("1");
const blessnum = ref("123123123");


const getInit = async () => {
  // 请求接口示例
  // const res=await publicApi.api1()
  console.log(publicApi);
};
// const onClickItem =  (item,targetItem) => {

//   console.log(item,targetItem,"===item,targetItem===");
// };

onMounted(() => {
  console.log(globals().info);
  getInit();
});
</script>
<style lang="scss" scoped>
.homecss {
  width: 200px;
  height: 200px;
  background-color: red;
}
</style>
